package com.gree.scmservice.service;

import com.gree.framework.entity.SysUserEx;

import java.util.List;

/**
 * 虚拟用户 service
 * Created by 180686 on 2021/3/17 14:59
 */

public interface GscmSysUserExService {

    /**
     * 新增虚拟用户
     * @param sysUserEx
     * @return
     */
    int insertSysUserEx(SysUserEx sysUserEx);

    /**
     * 分页查询虚拟用户
     * @param sysUserEx
     * @return
     */
    List<SysUserEx> selectSysUserExList(SysUserEx sysUserEx);

    /**
     * 修改虚拟用户
     * @param sysUserEx
     * @return
     */
    int updateSysUserEx(SysUserEx sysUserEx);

    /**
     * 删除虚拟用户
     * @param username
     * @return
     */
    int deleteSysUserExByName(String username);

    /**
     * 重置虚拟用户密码
     * @param username
     * @return
     */
    int resetPassword(String username);

}
